<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" errorPage="error/500.jsp"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/static/plugin/easyui/themes/gray/easyui.css">
<link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/static/plugin/easyui/themes/icon.css">
<script type="text/javascript" src="${pageContext.request.contextPath}/static/plugin/easyui/jquery.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/static/plugin/easyui/jquery.easyui.min.js"></script>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<title>测试专用系统</title>
<script type="text/javascript">
 $(function(){
	 if(!'${message}'==''){
		 $.messager.alert('提示','${message}');
	 }
 })
 //刷新验证码
function refreshVerificationCode(){
	$("#verificationCodeImg").attr("src","${ctx}/common/getVerificationCode?date=" + new Date());
}
</script>
<script type="text/javascript" src="${ctx}/static/js/index.js"></script>
</head>
<body>
<div align="right" style="margin-top:10%">
<form id="loginForm"  action="${ctx}/login" method="POST">
          <table  align="right" style="margin-right:10%;color:#fff;box-shadow: 0px 0px 20px #000;border-spacing:20px;width:20%;font-family:'Microsoft YaHei';background:#3c96d2">
	    		<tr>
	    			<td style="text-align:center"><input class="easyui-textbox"  id="name" type="text" name="name" data-options="prompt:'用户名'" style="height:25px;width:95%" ></input></td>
	    		</tr>
	    		<tr>
	    			<td style="text-align:center"><input class="easyui-textbox" id="password" type="password" name="password" data-options="prompt:'密码'" style="height:25px;width:95%"></input></td>
	    		</tr>
	    		<tr>
	    			<td style="text-align:center">
	    			<input class="easyui-textbox" id="code" type="text" name="code" data-options="prompt:'验证码'" style="height:25px;width:95%"></input>
	    			</td>
	    		</tr>
	    		<tr>
	    			<td style="text-align:left">&nbsp<input type="checkbox" name="rememberMe" id="rememberMe" value="true" checked="checked"/>记住我?</td>
	    		</tr>
	    		<tr>
                  <td style="text-align:right">
                  <img id="verificationCodeImg" alt="..." src="${ctx}/common/getVerificationCode">
                  <a href="#" class="easyui-linkbutton" onclick="refreshVerificationCode()" style="height:20px;width:50%">看不清？</a></td>
	    		</tr>
	    		<tr>
                  <td style="text-align:center">
                  <a href="#" class="easyui-linkbutton" onclick="loginSumbit()" style="height:25px;width:95%">GO</a></td>
	    		</tr>
	    </table>
</form>
</div>
</body>
</html>